<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    <script src="../../../scripts/jquery.min.js"></script>
    <script src="../../../scripts/miniui/miniui.js"></script>
    <link href="../../../scripts/miniui/themes/default/miniui.css" rel="stylesheet">
    <link href="../../../scripts/miniui/themes/icons.css" rel="stylesheet">
    <link href="../../../scripts/miniui/themes/pure/skin.css" rel="stylesheet">
    <script src="../../../scripts/core.js"></script>

</head>
<body>

<input class="mini-fileupload" id="fileupload1" name="Fdata"
       onfileselect="onFileSelect"
       onuploaderror="onUploadError"
       onuploadsuccess="onUploadSuccess"/>
<br/>
<input onclick="startUpload()" type="button" value="上传"/>


<script type="text/javascript">
    var auth = GetParams()
    console.log(auth)
    mini.parse();

    mini.parse();

    //动态设置url


    function onFileSelect(e) {

    }

    function onUploadSuccess(e) {
        if (window.CloseOwnerWindow) return window.CloseOwnerWindow("ok");
        else window.close();
    }

    function onUploadError(e) {

    }

    function startUpload() {
        var fileupload = mini.get("fileupload1");
        fileupload.setUploadUrl("/raceInfo/uploadLogo" + "/" + auth.userId + "/" + auth.token + "/" + auth.raceId);

        fileupload.startUpload();
    }

</script>


</body>
</html>